"create by tuber

"文件类型检测
filetype on
filetype plugin on
filetype plugin indent on
"设置编码类型
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936
" 移除菜单栏、工具栏和滚动条
set guioptions-=T
set guioptions-=a
"解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
" 使用中文帮助
set helplang=cn

" 设置主题
colorscheme desert
"语法高亮
syntax on
" 显示行号
set number
" 显示当前行
set cursorline
" 显示标尺
set ruler
set nocompatible
" 编辑器大小
" set lines=30 columns=100
" 字体
set guifont=Consolas:h16
set guifontwide=Consolas:h16
" 设置匹配模式，显示匹配的括号
set showmatch
" 设置粘贴板
set clipboard+=unnamed
" 自动切换到当前目录
set autochdir
" 实时查找
set incsearch
" 代码折叠
set foldenable
set foldmethod=syntax
" 启动不要自动折叠代码
set foldlevel=100 
" 设置缩进
set shiftwidth=4
set softtabstop=4
set tabstop=4
" 自动缩进
set noexpandtab
set autoindent
set cindent
" 不换行
"set nowrap
" 关闭备份
set nobackup
"不产生临时文件
set noswapfile
set noundofile
"出错时用闪屏代替声音
set vb
" 光标从行首和行末时可以跳到另一行去
set backspace=indent,eol,start whichwrap+=<,>,[,]
"不显示启动提示
set shortmess=atI

" source $VIMRUNTIME/mswin.vim
